﻿using System;
using System.Windows;
using System.Windows.Controls;

using SBPweb.PROvibe.Shared.Contracts.Content;

using SBPweb.PROvibe.Client.Framework.Controls;
using SBPweb.PROvibe.Client.Framework.Contracts.Content;

namespace SBPweb.PROvibe.Client.Modules.Default
{
    public partial class Entry : SmartpartPage
    {

        public Entry()
        {
            InitializeComponent();
            InitializeControls();
        }

        public Entry(IContentManager parent)
            : base(parent)
        {
            InitializeComponent();
            InitializeControls();
        }

        protected override void InitializeControls()
        {
            base.InitializeControls();
            ContentManager.LoadPage<IPage>(new TypeDescriptor("xap://SBPweb.PROvibe.Client.Modules.Default.xap/SBPweb.PROvibe.Client.Modules.Default.dll?class=SBPweb.PROvibe.Client.Modules.Default.LoginPage"));
            //spcLogin.LoadSmartpart(ContentManager, this);
        }

        private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            Application.Current.Host.Content.IsFullScreen = !Application.Current.Host.Content.IsFullScreen;
        }

    }

}